<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>JS实验</title>
  <script src="./js/index.js"></script>
</head>
<style>
  /* div#test span {
    color: green;
  } */
  /* 
  div span {
    color: blue;
  }

  span {
    color: red;
  }

  .span {
    color: aqua;
  } */

  div {
    color: red;
  }

  .test {
    color: blue;
  }
</style>

<body>
  <!-- <div id="test">
    <span id="txt" class="span">Text</span>
  </div> -->

  <div class="test">
    <div>
      <p>Lorem ipsum dolor sit amet.</p>
    </div>
  </div>
</body>

</html>